﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Smled
{
    class TileViewItem : ListViewItem
    {
        private Tile mTile;

        public TileViewItem(Tile t)
        {
            mTile = t;
            this.Text = t.Name;
        }

        public Tile ItemTile
        {
            get { return mTile; }
            set
            { 
                mTile = value;
                this.Text = value.Name + " (" + value.ID + ")";
            }
        }
    }
}
